package com.yike.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yike.product.entity.Barcode;
import com.yike.product.param.PlatformGoodsPageParam;
import com.yike.product.param.PlatformShopGoodsPageParam;
import com.yike.product.vo.PlatformGoodsVo;
import com.yike.product.vo.PlatformShopGoodsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 条码库 Mapper 接口
 *
 * @author yike
 * @since 2024-07-17
 */
@Mapper
public interface BarcodeMapper extends BaseMapper<Barcode> {

    PlatformGoodsVo getPlatformGoodsVo(@Param("id") Long id);

    IPage<PlatformGoodsVo> getGoodsList(@Param("page") Page page, @Param("param") PlatformGoodsPageParam param);

    void insertBatch(@Param("barcodes") List<Barcode> barcodes);

    IPage<PlatformShopGoodsVo> getShopGoodsList(@Param("page") Page page, @Param("param") PlatformShopGoodsPageParam param);


}
